#!/usr/bin/env python
# -*- coding: UTF-8 -*-

# Flags that decide how a world acts on the border
WORLD_TYPE_TORUS = 1
WORLD_TYPE_DEAD_AROUND = 2

# All possible coordinates in a simple list
COORD_LIST = ((0, 1), (1, -1), (0, -1), (-1, 1),
              (1, 1), (-1, 0), (-1, -1), (1, 0))

# Directions
DIR_NORTH = 0
DIR_NORTH_EAST = 1
DIR_EAST = 2
DIR_SOUTH_EAST = 3
DIR_SOUTH = 4
DIR_SOUTH_WEST = 5
DIR_WEST = 6
DIR_NORTH_WEST = 7

# Get coordinates using the direction
COORD_DICT = {DIR_NORTH: (0, -1), DIR_NORTH_EAST: (1, -1),
              DIR_EAST: (1, 0), DIR_SOUTH_EAST: (1, 1),
              DIR_SOUTH: (0, 1), DIR_SOUTH_WEST: (-1, 1),
              DIR_WEST: (-1, 0), DIR_NORTH_WEST: (-1, 1)}
